package com.csylh.Form;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Created by 留歌
 * Date: 2018/3/13 0:29
 * Description:
 */
@Data
public class OrderForm {

    @NotNull(message = "用户ID必填")
    private int userId;

    @NotBlank(message = "姓名必填")
    private String userName;

    @NotBlank(message = "手机号必填")
    private String userPhone;

    @NotBlank(message = "地址必填")
    private String userAddress;

    @NotNull(message = "收货员必填")
    private int clerkId;

    @NotBlank(message = "收货员必填")
    private String clerkName;

    @NotBlank(message = "收货员必填")
    private String clerkPhone;

    @NotBlank(message = "订单不能为空")
    private String items;

    //订单的照片
    private List<MultipartFile> orderIcon;

    //订单描述
    private String orderDescription;
}

